import request from "@/utils/request";
const BASE_URL = "admin";

//治疗室信息管理
//查
export const queryAllTreatmentRoomInfo = (params) =>
    request.get(`${BASE_URL}/treatmentRoom/queryAllTreatmentRoomInfo`, { params });

//编辑
export const updateTreatmentRoomInfo = (params) =>{
    return request.put(`${BASE_URL}/treatmentRoom/updateTreatmentRoomInfo?id=${params.id}`, params);
}

//删除
export const deleteTreatmentRoomInfo = (id) =>
    request.delete(`${BASE_URL}/treatmentRoom/deleteTreatmentRoomInfo`, {params:id});

//新增
export const addTreatmentRoomInfo = (params) =>
    request.post(`${BASE_URL}/treatmentRoom/addTreatmentRoomInfo`, params );